<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
	threshold="null" debug="false">

	<appender name="rolling" class="org.apache.log4j.RollingFileAppender">
		<param name="file" value="activemq.log" />
		<param name="MaxFileSize" value="1MB" />
		<!-- Keep 3 backup files -->
		<param name="MaxBackupIndex" value="3" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d{ISO8601} %5p %24C{1}:%L - %m%n" />
		</layout>
	</appender>


	<appender name="console" class="org.apache.log4j.ConsoleAppender">
		<param name="Target" value="System.out" />
		<layout class="org.apache.log4j.PatternLayout">
			<param name="ConversionPattern" value="%d{ABSOLUTE} %-5p %C{1} - %m%n" /> <!-- c:category C:class -->
		</layout>
	</appender>

	<logger name="it.geosolutions.activemq" additivity="true">
		<!-- <level value="warning" /> -->
		<level value="info" /><!-- DEBUG -->
		<appender-ref ref="rolling" />
		<appender-ref ref="console" />
	</logger>

	<logger name="org.mortbay.log" additivity="true">
		<!-- <level value="warning" /> -->
		<level value="info" /><!-- DEBUG -->
		<appender-ref ref="rolling" />
		<appender-ref ref="console" />
	</logger>

	<logger name="org.apache.activemq" additivity="true">
		<!-- <level value="warning" /> -->
		<level value="info" /><!-- DEBUG -->
		<appender-ref ref="rolling" />
		<appender-ref ref="console" />
	</logger>

	<root>
		<level value="info" />
		<appender-ref ref="rolling" />
		<appender-ref ref="console" />
	</root>

</log4j:configuration>
